package jp.tkym.labs.util.date;

import java.util.Date;

public class DateUtil {
	private static final DateResolver resolver = new DateResolver(); 
	
	public static int days(Date start, Date end){
		return resolver.days(start, end);
	}
	
	public static Date before(Date a, Date b){
		return resolver.before(a, b);
	}
	
	public static Date after(Date a, Date b){
		return resolver.after(a, b);
	}

	public static Date addMonth(Date today, int amount){
		return resolver.addMonth(today, amount);
	}
	
	public static Date addDay(Date today, int day){
		return resolver.addDay(today, day);
	}
	
	public static Date yesterday(Date date){
		return resolver.yesterday(date);
	}
	
	public static Date tomorrow(Date date){
		return resolver.tomorrow(date);
	}
	
	public static Date toDate(int yyyymmdd){
		return resolver.toDate(yyyymmdd);
	}
	
	public static int toInt(Date date){
		return resolver.toYyyymmdd(date);
	}
}